<?php $this->fetch('public/head'); ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class=""><a href="<?php echo url('hsadmin/group_index') ?>">角色</a></li>
<!--        <li class=""><a href="--><?php //echo url('hsadmin/group_add') ?><!--">添加角色</a></li>-->
        <li class="layui-this">编辑角色</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" action="<?php echo url('hsadmin/group_update') ?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" value="<?php echo $auth_group['title'] ?>" required lay-verify="required" placeholder="请输入角色名称" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" <?php if($auth_group['status']==1){echo 'checked="checked"';} ?>>
                        <input type="radio" name="status" value="0" title="禁用" <?php if($auth_group['status']==0){echo 'checked="checked"';} ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="<?php echo $auth_group['id'] ?>">
                        <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $this->fetch('public/script'); ?>